﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using LF3.Moduls;
using LF3.Repositories;
using System.Data;

namespace LF3.Controllers
{
    public class LF_CurrentHeatController
    {
        LF_CurrentHeatRepository rep = new LF_CurrentHeatRepository();
        public V_Schedule_Tapping GetCurrentHeatInfo()
        {
            return rep.GetCurrentHeatInfo();
        }

        public string GetStnoByHeatID(string heatid)
        {
            return rep.GetStnoByHeatID(heatid);
        }

        public Lf_Cc_Status_Info GetCCInfo(int ccid)
        {
            return rep.GetCCInfo(ccid);
        }

        public DataTable GetHeatEvent(string heatid)
        {
            return rep.GetHeatEvent(heatid);
        }

        public DataTable GetHeatStandard(string stno)
        {
            return rep.GetHeatStandard(stno);
        }

        public int GetHeatSampleCount(string heatid)
        {
            return rep.GetHeatSampleCount(heatid);
        }

        public void AddSampleEvent(string heatid, int samplecount)
        {
            rep.AddSampleEvent(heatid, samplecount);
        }

        public void AddHeatMatConsume(Lf_Material_Consume mat)
        {
            rep.AddHeatMatConsume(mat);
        }

        public void UpdateHeatMatConsume(Lf_Material_Consume mat)
        {
            rep.UpdateHeatMatConsume(mat);
        }

        public void DeleteHeatMatConsume(Lf_Material_Consume mat)
        {
            rep.DeleteHeatMatConsume(mat);
        }  
    }
}
